export class systemgroup {
  id?: number;
  name = '';
  info = ''
  formId = ''

  constructor(data?: systemgroup) {
    data && this.setProps(data);
  }

  setProps(data: systemgroup) {
    (Object.keys(this) as Array<keyof Isystemgroup>).forEach((key) => {
      // @ts-ignore
      this[key] = data[key]
    })
  }
}

export type Isystemgroup = Omit<systemgroup, 'setProps'>